#Boa:Dialog:Dialog1

import wx

def create(parent):
    return Dialog1(parent)

[wxID_DIALOG1, wxID_DIALOG1BUTTON2, wxID_DIALOG1STATICTEXT1, 
 wxID_DIALOG1TEXTCTRL1, 
] = [wx.NewId() for _init_ctrls in range(4)]

class Dialog1(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_DIALOG1, name='', parent=prnt,
              pos=wx.Point(387, 148), size=wx.Size(439, 117),
              style=wx.DEFAULT_DIALOG_STYLE, title='URL')
        self.SetClientSize(wx.Size(431, 90))

        self.staticText1 = wx.StaticText(id=wxID_DIALOG1STATICTEXT1,
              label='Introduzca la URL', name='staticText1', parent=self,
              pos=wx.Point(16, 8), size=wx.Size(85, 13), style=0)

        self.textCtrl1 = wx.TextCtrl(id=wxID_DIALOG1TEXTCTRL1, name='textCtrl1',
              parent=self, pos=wx.Point(16, 24), size=wx.Size(400, 21), style=0,
              value='')

        self.button2 = wx.Button(id=wxID_DIALOG1BUTTON2, label='Aceptar',
              name='button2', parent=self, pos=wx.Point(340, 56),
              size=wx.Size(75, 23), style=0)
        self.button2.Bind(wx.EVT_BUTTON, self.OnSalir, id=wxID_DIALOG1BUTTON2)

    def __init__(self, parent):
        self._init_ctrls(parent)
        self.url = ""

    def OnSalir(self, event):
        self.url = self.textCtrl1.GetLabel()
        self.Close()

    def getURL(self):
        return self.url
    